<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/Public/Css/home/index_style.css">
    <script type="text/javascript">
        function register() {
            var username=document.getElementById("username").value;
            var pwd=document.getElementById("password").value;
            document.getElementById("myforms").action="/index.php/Home/User/add/username/"+username+"/password/"+pwd;
            // alert(document.getElementById("myform").action);
            document.getElementById("myforms").submit();
        }
        function show(obj) {
            obj.src="/index.php/Home/Common/verify";
        }
    </script>
    <title>登录</title>

</head>
<body>
<div id="">
    <div id="main">
        <div id="tit"></div>
        <div id="myform">
            <form id="myforms" action="/index.php/Home/Login/login" method="post">
                <p><h2>LOGIN</h2></p>
                <p>
                <lable><span>用户名：</span>
                    <input type="text" name="aname" id="username" placeholder="请输入用户名">
                </lable>
                </p>
                <p>
                <lable><span>密&nbsp;&nbsp;&nbsp;码：</span>
                    <input type="password" name="apassword" id="password" placeholder="">
                </lable>
                </p>
                <p>
                <lable><span>验证码：</span>
                    <input type="text" name="verify" id="verify">
                </lable>
                </p>
                <p>
                    <div id="IM"><img class="img_V" src="/index.php/Home/Common/verify" onclick="show(this)"></div>
                </p>
                <p>
                    <div id="b_btn"><button type="submit">登录</button>
                    <button onclick="register()">注册</button>
                </div>
                </p>
                <!--<a target="" href=""></a>-->
            </form>
        </div>
    </div>
</div>
</body>
</html>